Javascript: pass variable to arrow function instead of setting harcoded value

visit shbcf.ru